package com.shujia.day15.jdgc;

public class Operator {
    public static void main(String[] args) {
        Animal cat = Factory.getAnimalObject("cat", "咪咪");
        cat.eat();
        Animal dog = Factory.getAnimalObject("Dog", "旺财");
        dog.eat();
    }
}
